﻿using LNet;
using OestsServer.Net;
using System;

namespace OestsServer.Handlers.UnityHandlers
{
    /// <summary>
    /// 退出登录，但是还在连接状态
    /// </summary>
    public class SyncTimeHandler : HandlerBase<UnityClientChannel>
    {
        public override PacketKey PKey
        {
            get
            {
                return PacketKey.SyncTime;
            }
        }
        public override void Execute(UnityClientChannel client, Request packet)
        {
            base.Execute(client, packet);

            ResponsePacket = new Response(packet)
            {
                DataObject = DateTime.Now.ToString()
            };

            client.Send(ResponsePacket);

        }

    }

}
